import Practice from '@/views/practice'
import Detail from '@/views/detail'
import Business from '@/views/business'
import Suv from '@/views/suv'
import Baby from '@/views/baby'
import Home from '@/views/home'
import Navbar from '@/components/nav-bar'
import FourW from '@/views/fourW'
import EightW from '@/views/eightW'
import FifteenW from '@/views/fifteenW'
import TwentyW from '@/views/twenty-fiveW'
import More from '@/views/more'
import Login from '@/views/login'
import Dialog from '@/views/dailog'
import Cart from '@/views/cart'
import My from '@/views/my'
import Tabbar from '@/components/tab-bar'
import Bmw from '@/views/bmw'
import Bt from '@/views/bt'
import Bc from '@/views/bc'
import Yxhaoche from '@/views/yxhaoche'
import Newcat from '@/views/newcat'
import Seconddied from '@/views/seconddied'
import Baoy from '@/views/baoy'
import Aodi from '@/views/aodi'
import Dz from '@/views/dz'
import Adress from '@/views/adress'
import AdressPush from '@/views/adressPush'
const routes = [
  {
    path: '/',
    redirect: 'home',
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/adress',
    name: 'adress',
    component: Adress,
  },
  {
    path: '/adressPush',
    name: 'adressPush',
    component: AdressPush,
  },
  {
    path: '/home',
    name: 'home',
    components: {
      default: Home,
      footer: Tabbar,
    },
    meta: { // 路由元信息，是在当前路由处理时需要用到的一些额外的数据
      icon: '&#xe6b8;',
      title: '首页',
      inTabbar: true,
    },
  },
  {
    path: '/practice',
    name: 'practice',
    components: {
      header: Navbar,
      default: Practice,
    },
  },
  {
    path: '/login',
    name: 'login',
    component: Login,
  },
  {
    path: '/fourW',
    name: 'fourW',
    components: {
      header: Navbar,
      default: FourW,
    },
  },
  {
    path: '/eightW',
    name: 'eightW',
    components: {
      header: Navbar,
      default: EightW,
    },
  },
  {
    path: '/fifteenW',
    name: 'fifteenW',
    components: {
      header: Navbar,
      default: FifteenW,
    },
  },
  {
    path: '/twenty-fiveW',
    name: 'twenty-fiveW',
    components: {
      header: Navbar,
      default: TwentyW,
    },
  },
  {
    path: '/dialog',
    name: 'dialog',
    component: Dialog,
  },
  {
    path: '/cart',
    name: 'cart',
    components: {
      default: Cart,
      footer: Tabbar,
    },
    meta: {
      icon: '&#xe6af;',
      title: '购物车',
      inTabbar: true,
    },
  },
  {
    path: '/practice',
    name: 'practice',
    components: {
      header: Navbar,
      default: Practice,
    },
  },
  {
    path: '/detail/:id',
    name: 'detail',
    component: Detail,
  },
  {
    path: '/suv',
    name: 'suv',
    components: {
      header: Navbar,
      default: Suv,
    },
  },
  {
    path: '/business',
    name: 'business',
    components: {
      header: Navbar,
      default: Business,
    },
  },
  {
    path: '/baby',
    name: 'baby',
    components: {
      header: Navbar,
      default: Baby,
    },
  },
  {
    path: '/bt',
    name: 'bt',
    components: {
      header: Navbar,
      default: Bt,
    },
  },

  {
    path: '/bc',
    name: 'bc',
    components: {
      header: Navbar,
      default: Bc,
    },
  },
  {
    path: '/bmw',
    name: 'bmw',
    components: {
      header: Navbar,
      default: Bmw,
    },
  },
  {
    path: '/yxhaoche',
    name: 'yxhaoche',
    components: {
      header: Navbar,
      default: Yxhaoche,

    },
  },
  {
    path: '/newcat',
    name: 'newcat',
    components: {
      header: Navbar,
      default: Newcat,

    },
  },
  {
    path: '/seconddied',
    name: 'seconddied',
    components: {
      header: Navbar,
      default: Seconddied,

    },
  },
  {
    path: '/baoy',
    name: 'baoy',
    components: {
      header: Navbar,
      default: Baoy,

    },
  },
  {
    path: '/aodi',
    name: 'aodi',
    components: {
      header: Navbar,
      default: Aodi,

    },
  },
  {
    path: '/dz',
    name: 'dz',
    components: {
      header: Navbar,
      default: Dz,
    },
  },
  {
    path: '/my',
    name: 'my',
    components:
    {
      default: My,
      footer: Tabbar,
    },
    meta: {
      icon: '&#xe736;',
      title: '我的',
      inTabbar: true,
    },
  },
  {
    path: '/more',
    name: 'more',
    components: {
      header: Navbar,
      default: More,
    },
  },
]

export default routes
